﻿@using BotDetector.Resources
@model BotDetector.Web.Models.Message
            
@{
    ViewBag.Title = "Home Page";
}

<div class="row">
    <div class="col-md-8">
        <br />
        <h3>@ViewResources.IntroductoryText</h3>
    </div>
    
</div>

<div class="row">
    <div class="col-md-6">
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.TextAreaFor(model => model.Text, new { style = "min-width:100%; height: 200px;" })
            
            <h4>@ViewResources.ButtonUsageText</h4>
            
            <div class="btn-toolbar">
                <button type="submit" class="btn btn-info">@ViewResources.ButtonText</button>
                @Html.ValidationMessageFor(model => model.Text, "", new { @class = "text-danger" })
            </div>
        }
    </div>
    <div class="col-md-4">
        <h4>@ViewResources.ProbabilityText</h4>
        @Html.DisplayFor(model => model.BotProbability)
    </div>
</div>
